package controller.action;

import com.opensymphony.xwork2.ActionSupport;

import model.service.ClassroomService;


public class AddClassroom extends ActionSupport{
	private String result;
	private ClassroomService classroomService;
	private String classroomInfo;
	public String getClassroomInfo() {
		return classroomInfo;
	}
	public void setClassroomInfo(String classroomInfo) {
		this.classroomInfo = classroomInfo;
	}
	public String getResult() {
		return result;
	}
	public void setResult(String result) {
		this.result = result;
	}
	public ClassroomService getClassroomService() {
		return classroomService;
	}
	public void setClassroomService(ClassroomService classroomService) {
		this.classroomService = classroomService;
	}
	
	public String addClassroom(){
		result = classroomService.addClassroom(classroomInfo);
		return SUCCESS;
	}
}
